﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Chapter03.View
{
    /// <summary>
    /// DynamicConntentWindow.xaml 的交互逻辑
    /// </summary>
    public partial class DynamicContentWindow : Window
    {
        public DynamicContentWindow()
        {
            InitializeComponent();
        }

        private void checkBox1_Checked(object sender, RoutedEventArgs e)
        {
            var control = sender as CheckBox;
            if (control != null)
            {
                if ((bool)control.IsChecked)
                {
                    button1.Content = "           转到 上一个 窗口            ";
                    button2.Content = "           转到 下一个 窗口            ";
                }
                else
                {
                    button1.Content = "上一页";
                    button2.Content = "下一页";
                }
            }
        }
    }
}
